.TH GRUB-MKIMAGE 1 "Wed Feb 26 2014"
.SH NAME
\fBgrub-mkimage\fR \(em Make a bootable GRUB image.

.SH SYNOPSIS
\fBgrub-mkimage\fR [-c | --config=\fRFILE\fI] [-C | --compression=(\fIxz\fR,\fInone\fR,\fIauto\fR)]
.RS 14
[-d | --directory=\fRDIR\fR] [-k | --pubkey=\fIFILE\fR]
.RE
.RS 14
[-m | --memdisk=\fIFILE\fR] [-n | --note] [-o | --output=\fIFILE\fR]
.RE
.RS 14
[-O | --format=\fIFORMAT\fR] [-p | --prefix=\fIDIR\fR]
.RE
.RS 14
[-v | --verbose] \fIMODULES\fR

.SH DESCRIPTION
\fBgrub-mkimage\fI builds a bootable image of GRUB.

.SH OPTIONS
.TP
--config=\fIFILE\fR
Embed \fIFILE\fR as the image's initial configuration file.

.TP
--compression=(\fIxz\fR,\fInone\fR,\fIauto\fR)
Use one of \fIxz\fR, \fInone\fR, or \fIauto\fR as the compression method for the core image.

.TP
--directory=\fIDIR\fR
Use images and modules from \fIDIR\fR.  The default value is \fB/usr/lib/grub/<platform>\fR.

.TP
--pubkey=\fIFILE\fR
Embed the public key \fIFILE\fR for signature checking.

.TP
--memdisk=\fIFILE\fR
Embed the memdisk image \fIFILE\fR.  If no \fB-p\fR option is also specified, this implies \fI-p (memdisk)/boot/grub\fR.

.TP
--note
Add a CHRP \fINOTE\fR section.  This option is only valid on IEEE1275 platforms.

.TP
--output=\fIFILE\fR
Write the generated file to \fIFILE\fR.  The default is to write to standard output.

.TP
--format=\fIFORMAT\fR
Generate an image in the specified \fIFORMAT\fR.  Valid values are:
.RS
.RS 4
.P
i386-coreboot,
i386-multiboot,
i386-pc,
i386-pc-pxe,
i386-efi,
i386-ieee1275,
i386-qemu,
x86_64-efi,
mipsel-yeeloong-flash,
mipsel-fuloong2f-flash,
mipself-loongson-elf,
powerpc-ieee1275,
sparc64-ieee1275-raw,
sparc64-ieee1275-cdcore,
sparc64-ieee1275-aout,
ia64-efi,
mips-arc,
mipsel-arc,
mipsel-qemu_mips-elf,
mips-qemu_mips-flash,
mipsel-qemu_mips-flash,
mips-qemu_mips-elf
.RE
.RE

.TP
--prefix=\fIDIR\fR
Set prefix directory.  The default value is \fI/boot/grub\fR.

.TP
--verbose
Print verbose messages.

.TP
\fIMODULES\fR
Include \fIMODULES\fR.

.SH SEE ALSO
.BR "info grub"
